package com.zzy.aop.version1;

import java.lang.reflect.Method;

public class AOPTest {
    public static void main(String[] args) throws NoSuchMethodException {
        Class<AOPBean> aopBeanClass = AOPBean.class;

        Method method1 = aopBeanClass.getMethod("method1");

        AOP.aopMethod(aopBeanClass); //类对象

        AOP.aopMethod(method1); //方法对象
    }
}
